package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyRepository extends MongoRepository<Strategy,String> {



    // 查询所有攻略
    List<Strategy> findByCatalogId(String id);

    List<Strategy> findByDestId(String destId);

    // 过目的地查询相关游记信息
    List<Strategy> findByDestName(String keyword);

    // 通过id集合查询对象集合
    List<Strategy> findByIdIn(List<String> sids);
}
